package containers;
import java.util.*;
import net.mindview.util.*;
class Goverment implements Generator<String>{
    String[] foundation=("strange women lying in ponds "+
            "distributing swords is no basis for a system of "+
            "government").split(" ");
    private int index;

    @Override
    public String next() {
        return foundation[index++];
    }
}
public class CollectionDataTest {
    public static void main(String[] args) {
        Set<String> set=new LinkedHashSet<String>(new CollectionData<String>(new Goverment(),15));
        set.addAll(CollectionData.list(new Goverment(),15));
        System.out.println(set);
    }
}
